<?php

require_once(DIR_LIB."VsCore".DIR_SEP."vsauth.php");
require_once(DIR_LIB."VsGui".DIR_SEP."vssmartywidget.php");


class XCartWrapperPrint extends VsSmartyWidget {

	private $_centralWidgets = array();

	function __construct(&$page) {
		// Ne go zabravqj ina4e nqma $smarty Object
		parent::__construct();

		$this->_wwwDir = 'templates/XCart/';

		$page->addCssFile($this->_wwwDir."css/skin1_admin.css", 'all');

		//$page->addCssFile($this->_wwwDir."css/switcher.css");
		//$page->addJsFile($this->_wwwDir."js/switcher.js");
		

		$this->_template = dirname(__FILE__).DIR_SEP."xcart_wrapper_print.html";
	}
	//============================================================================

	function show() {
		//$this->initImages();
		$this->assign('currentAuth', VsAuth::Instance());
		$this->assign('wwwDir', $this->_wwwDir);

		$this->assign('centralWidgets', $this->_centralWidgets);

		//echo $this->_template;

		return $this->fetch($this->_template);
	}
	//============================================================================

	function addCentralWdget($widget) {
		array_push($this->_centralWidgets, $widget);

	}
	//============================================================================

};

?>
